<?php

    $this->widget('EExcelWriter', array(
        'dataProvider' => $model->search(),
        'title'        => 'EExcelWriter',
        'stream'       => TRUE,
        'fileName'     => 'users.xls',
        'columns'      => array(
            'id',
            'username',
            'fullname',
            'email',
            'last_login',
            'lock_counter',
            'locked'
        ),
    ));

?>